package org.example.bean;

/**
 * 国家信息实体类，仅包含 countryId（int 类型）和 countryName 字段
 */
public class Country {
    // 国家ID，类型为 int
    private int countryId;
    // 国家名称
    private String countryName;

    public Country() {
    }

    // 简化的构造方法，仅初始化 countryId 和 countryName
    public Country(int countryId, String countryName) {
        this.countryId = countryId;
        this.countryName = countryName;
    }

    // Getter & Setter
    public int getCountryId() {
        return countryId;
    }

    public void setCountryId(int countryId) {
        this.countryId = countryId;
    }

    public String getCountryName() {
        return countryName;
    }

    public void setCountryName(String countryName) {
        this.countryName = countryName;
    }

    @Override
    public String toString() {
        return "Country{" +
                "countryId=" + countryId +
                ", countryName='" + countryName + '\'' +
                '}';
    }
}